package com.jike.jkgame;

import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ListView;

public class SnatchActivity extends Activity{
	
	private ListView mPlayerLv;
	private LayoutInflater mInflater;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.snatch_layout);
		
		mPlayerLv = (ListView) findViewById(R.id.lv_players);
		mPlayerLv.setAdapter(new PlayerListAdapter());
		
		mInflater = LayoutInflater.from(this);
	}
	
	class PlayerListAdapter extends BaseAdapter{

		@Override
		public int getCount() {
			return 10;
		}

		@Override
		public Object getItem(int arg0) {
			return null;
		}

		@Override
		public long getItemId(int position) {
			return 0;
		}

		@Override
		public View getView(int position, View convertView, ViewGroup parent) {
			
			View v = mInflater.inflate(R.layout.player_list_item, parent, false);
			
			return v;
		}
		
	}

}
